package com.link.play.fit.ai.service

import com.google.firebase.messaging.FirebaseMessagingService
import com.google.firebase.messaging.RemoteMessage
import com.link.play.fit.ai.utils.EventUtils
import org.json.JSONObject


class MessagingService : FirebaseMessagingService() {
    override fun onMessageReceived(remoteMessage: RemoteMessage) {
        super.onMessageReceived(remoteMessage)
        val data = JSONObject(remoteMessage.data.toString())
        EventUtils.event("FCM_Received", ext = data)
    }

    override fun onNewToken(token: String) {
        super.onNewToken(token)
    }
}